/*
* @Author: xfy
* @Date:   2017-09-13 16:11:53
* @Last Modified by:   xfy
* @Last Modified time: 2017-09-13 20:44:31
*/
'use strict';
var _supper = require('util/supper.js');
var _orderManage = {
    //获取所有的订单
    orderList : function(listParam, resolve, reject){
        _supper.request({
            url     : _supper.getServerUrl('/orderManage!orderList'),
            data    : listParam,
            success : resolve,
            error   : reject
        });
    },
    //获取订单详情
    orderDetail : function(orderNum, resolve, reject){
        _supper.request({
            url     : _supper.getServerUrl('/orderManage!orderDetail'),
            data    : {
                orderNo : orderNum
            },
            success : resolve,
            error   : reject
        });
    },
    //通过订单号搜索
    manageSearch : function(orderNum, resolve, reject){
        _supper.request({
            url     : _supper.getServerUrl('/orderManage!manageSearch'),
            data    : {
                orderNo : orderNum
            },
            success : resolve,
            error   : reject
        });
    },
    //发货功能
    manageSendGoods : function(orderNum, resolve, reject){
        _supper.request({
            url     : _supper.getServerUrl('/orderManage!manageSendGoods'),
            data    : {
                orderNo : orderNum
            },
            success : resolve,
            error   : reject
        });
    }
}
module.exports = _orderManage;